package com.mybatis.domain;

import java.util.Date;

public class Users {

    private Integer userId;
    private String userName;
    private String userPassword;
    private Date userDate;
    private Integer userRoleId;

    private SysRole sysRole;

    // 角色表
    private String roleName;


    public Users() {
    }

    public Users(Integer userId, String userName, String userPassword, Date userDate, Integer userRoleId) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userDate = userDate;
        this.userRoleId = userRoleId;
    }


    public SysRole getSysRole() {
        return sysRole;
    }

    public void setSysRole(SysRole sysRole) {
        this.sysRole = sysRole;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Date getUserDate() {
        return userDate;
    }

    public void setUserDate(Date userDate) {
        this.userDate = userDate;
    }

    public Integer getUserRoleId() {
        return userRoleId;
    }

    public void setUserRoleId(Integer userRoleId) {
        this.userRoleId = userRoleId;
    }

    @Override
    public String toString() {
        return "Users{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userDate=" + userDate +
                ", userRoleId=" + userRoleId +
                ", sysRole=" + sysRole +
                ", roleName='" + roleName + '\'' +
                '}';
    }
}
